from tortoise import Tortoise


async def batch_insert_data():
    await Tortoise.init(db_url='sqlite://../instance/kumquat.db', modules={'models': ['models']})

    print("数据库初始化成功")


# 调用异步函数
import asyncio

asyncio.run(batch_insert_data())
